// DSAddIn.h : header file
//

#if !defined(AFX_DSADDIN_H__1C44A96D_446C_4C80_A2B1_6EE77F8CF627__INCLUDED_)
#define AFX_DSADDIN_H__1C44A96D_446C_4C80_A2B1_6EE77F8CF627__INCLUDED_

#include "commands.h"

// {FF7F838F-2990-48DF-94AD-C435514C850D}
DEFINE_GUID(CLSID_DSAddIn,
0xff7f838f, 0x2990, 0x48df, 0x94, 0xad, 0xc4, 0x35, 0x51, 0x4c, 0x85, 0xd);

/////////////////////////////////////////////////////////////////////////////
// CDSAddIn

class CDSAddIn : 
	public IDSAddIn,
	public CComObjectRoot,
	public CComCoClass<CDSAddIn, &CLSID_DSAddIn>
{
public:
	DECLARE_REGISTRY(CDSAddIn, "Addmb.DSAddIn.1",
		"ADDMB Developer Studio Add-in", IDS_ADDMB_LONGNAME,
		THREADFLAGS_BOTH)

	CDSAddIn() {}
	BEGIN_COM_MAP(CDSAddIn)
		COM_INTERFACE_ENTRY(IDSAddIn)
	END_COM_MAP()
	DECLARE_NOT_AGGREGATABLE(CDSAddIn)

// IDSAddIns
public:
	STDMETHOD(OnConnection)(THIS_ IApplication* pApp, VARIANT_BOOL bFirstTime,
		long dwCookie, VARIANT_BOOL* OnConnection);
	STDMETHOD(OnDisconnection)(THIS_ VARIANT_BOOL bLastTime);

protected:
	CCommandsObj* m_pCommands;
	DWORD m_dwCookie;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DSADDIN_H__1C44A96D_446C_4C80_A2B1_6EE77F8CF627__INCLUDED)
